<?php 
/* SVN FILE: $Id$ */
/* EntitiesTag Test cases generated on: 2010-01-02 01:14:59 : 1262394899*/
App::import('Model', 'EntitiesTag');

class EntitiesTagTestCase extends CakeTestCase {
	var $EntitiesTag = null;
	var $fixtures = array('app.entities_tag');

	function startTest() {
		$this->EntitiesTag =& ClassRegistry::init('EntitiesTag');
	}

	function testEntitiesTagInstance() {
		$this->assertTrue(is_a($this->EntitiesTag, 'EntitiesTag'));
	}

	function testEntitiesTagFind() {
		$this->EntitiesTag->recursive = -1;
		$results = $this->EntitiesTag->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('EntitiesTag' => array(
			'id'  => 1,
			'model'  => 'Lorem ipsum dolor sit amet',
			'model_id'  => 1,
			'tag_id'  => 1,
			'created'  => '2010-01-02 01:14:59'
		));
		$this->assertEqual($results, $expected);
	}
}
?>